﻿using Repo.Interfaces;

namespace Repo.FieldTypes
{
    public class HtmlText : IComplexFieldType
    {
        public string Value { get; set; }

        public IComplexFieldType SetInstanceValue(object value)
        {
            if (value != null)
            {
                return new HtmlText
                {
                    Value = value.ToString()
                };
            }
            return null;
        }
    }
}
